<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>移动学术论坛登录界面</title>
    <link th:href="@{/css/bootstrap.min.css}" type="text/css" rel="stylesheet">
    <script th:src="@{/js/bootstrap.js}"></script>
</head>
<body>
    <div class="container">
       <form action="/login" class="center-block" method="post">
           <h1 style="width: 450px;margin-top: 150px" class="center-block">移动学术论坛登录界面</h1>
              <input style="margin-top: 80px;width: 300px" class="form-control center-block" type="text" name="username" placeholder="用户名"/>
              <input style="margin-top: 15px;width: 300px" class="form-control center-block" type="password" name="password" placeholder="密码"/>
               <span style="color: red;margin-left: 323px" th:text="${error}"></span>
              <input style="margin-top: 15px;width: 300px" class="btn btn-success center-block" type="submit" value="登录">
               <p style="margin-left: 475px;margin-top: 17px"><a style="color: red" href="/register">点击注册</a>如果你没有一个帐户。</p>
       </form>
    </div>
</body>
</html>